package com.example.statistics.bean

import java.io.Serializable

data class MarketSales(
        val id: Int,
        val attribute: String,
        val productId: Int,
        val factoryNo: String,
        val productName: String,
        val number: Int,
        val carId: Int,
        val salesArea: String?,
        val plateNumber: String?,
        val parkingSpace: String?,
        val logisticsCompany: String?,
        var driverPhone: String?,
        val supplier: String?,
        val customer: String?,
        val date: String?
) : Serializable

data class ProductSales(
        var id: Int = 0,
        var name: String = "",
        var number: Int = 0,
        var weight: Float = 0f,
        var price: Float = 0f,
        var totalPrice: Float = 0f,
        var product: ProductBean? = null,
        var remark: String = ""
)


data class SalesOrder(
        var ID: Int = 0,
        var customerId: Int = 0,
        var customerCity: String? = null,
        var customerName: String? = null,
        var sellerId: Int = 0,
        var sellerName: String = "",
        var date: String = "",
        var totalPrice: Double? = 0.0,
        var arrears: Double? = 0.0,
        var discountAmount: Double? = 0.0,
        var salesProductList: List<SalesProduct> = listOf(),
        var remark: String? = ""
)

/**
 * 销售的商品
 */
data class SalesProduct(
        var ID: Int = 0,
        var salesOrderId: Int = 0,
        var customerId: Int = 0,
        var customerName: String? = "",
        var specification: String? = "",
        var inventoryId: Int = 0,
        var productId: Int = 0,
        var date: String = "",
        var productName: String = "",
        var factoryNo: String = "",
        var salesNumber: Int? = 0,
        var salesWeight: Double? = 0.0,
        var salesPrice: Double? = 0.0,
        var salesTotalPrice: Double? = 0.0,
        var remark: String = ""
)